package com.sc.nft.mapper;

import com.sc.nft.entity.UserPledgeCollectionRecords;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sc.nft.entity.vo.AdminPledgeCollectionRecordsVO;
import com.sc.nft.entity.vo.UserVigorousCollectionVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 质押任务-用户质押记录-关联藏品和奖励表(sc_user_pledge_collection_records)数据Mapper
 *
 * @author kancy
 * @since 2023-06-13 14:55:02
 * @description 由 Mybatisplus Code Generator 创建
*/
@Mapper
public interface UserPledgeCollectionRecordsMapper extends BaseMapper<UserPledgeCollectionRecords> {

    AdminPledgeCollectionRecordsVO getCollectioInfoByUserPledgeRecordsId(@Param("userPledgeRecordsId") Long userPledgeRecordsId);

    /**
     * 根据用户质押记录id获取用户激活记录id
     * @param userPledgeRecordsId
     * @return
     */
    List<UserVigorousCollectionVO> getPledgeCollectionIdByUserPledgeRecordsId(@Param("userPledgeRecordsId") Long userPledgeRecordsId);
}
